package com.zkdcloud.dto;

import org.jfaster.mango.plugin.page.Page;

import java.util.List;

/**
 * 分页数据
 */
public class Pagination {
	/**
	 * 页码
	 */
	protected Integer pageNum;
	/**
	 * 页面大小
	 */
	protected Integer pageSize;
	/**
	 * 总数
	 */
	protected Integer total;
	/**
	 * 返回数据
	 */
	protected List list;

	public Pagination(){
	}

	public Pagination(Page page, List list){
		this(page);
		this.list = list;
	}

	public Pagination(Page page){
		this.pageNum = page.getPageNum();
		this.pageSize = page.getPageSize();
		this.total = page.getTotal();
	}
	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}
}
